<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo ConboBox</title>
    <link rel="stylesheet" type="text/css" href="/easyui.css">
    <link rel="stylesheet" type="text/css" href="/icon.css">
    <link rel="stylesheet" type="text/css" href="/demo.css">
    <script src="/jquery.min.js"></script>
    <script src="/jquery.easyui.min.js"></script>
</head>
<body>
<h2>Navigate ComboBox</h2>
<p>请你选择今天是周几？</p>
<div style="margin:20px 0;">
    <input type="checkbox" checked onchange="$('#cc').combobox({selectOnNavigation:$(this).is(':checked')})">
    <span>SelectOnNavigation</span>
</div>

<select id="cc" class="easyui-combobox" name="state" style="width:400px;">
    <option value="1" id="id1">周一</option>
    <option value="2">周二</option>
    <option value="3">周三</option>
    <option value="4">周四</option>
    <option value="5">周五</option>
    <option value="6">周六</option>
    <option value="7">周日</option>
</select>
<script type="text/javascript">
    $("select > option").click(function () {
        var str ="111";
        console.log(str);
//        str = $(this).parent().val();
//        console.log(str);
    });
    $("#id1").click(function () {
        console.log("id1 run")
    });
</script>
</body>
</html>